-
Notifications
You must be signed in to change notification settings - Fork 2
Fix dataset tests #562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Fix dataset tests #562
Conversation
Pull Request Test Coverage Report for Build 13530332879Details
💛 - Coveralls |
It fails on python versions 3.11, 3.12, with errors in creating temp directories. Not sure about the reason. |
json_path_user = USER_CONFIG_PATH.joinpath("datasets.json") | ||
def test_get_remove_dataset(requests_mock, zip_buffer, tmp_path): | ||
"""Test to get a dataset, verify its directory and files, and then remove the dataset.""" | ||
json_path_user = tmp_path / USER_CONFIG_PATH / "datasets.json" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't use a temp path, but the user config. Not sure why. I think you should patch the USER_CONFIG_PATH instead.
There are strong interconnections and race conditions between the different tests, as they all access the same datasets.json files as defined by the static dm. This needs also to be resolved, parallel running test very often fail randomly. |
Fixes #559 and also moves the dataset documentation to an easily accessible place for users (also changed to md file for ease of updating).
Currently available here: https://opencompes.github.io/docs/sed/develop/user_guide/dataset.html (might change when another build is done)